#app {
  .main-container {
    height: calc(100vh - 80px);
    // padding: 68px 0px 0px 8px;
    transition: margin-left 0.28s;
    margin-left: $sideBarWidth;
    overflow: hidden;
    position: relative;
    background: rgba(255, 255, 255, 0);
    border: 8px solid rgba(255, 255, 255, 0); 
  }

  .main-container::-webkit-scrollbar {
    display: none;

  }

  .sidebar-container::-webkit-scrollbar {
    display: none;
  }

  .sidebar-container{
    .is-active>.el-submenu__title {
      color: $menuActiveText !important;
    }
	.el-menu-item{
		height:50px;
		line-height:50px;
		border-radius: 6px;
	}
    & .nest-menu .el-submenu>.el-submenu__title,
    & .el-submenu .el-menu-item {  
     height:50px;
     line-height:50px;
     border-radius: 6px;
      font-size: 16px;
      color: #333; 
	  border-radius: 6px;
	  overflow:hidden;
      &:hover {
        background: $menuActiveBg !important;
      }
    }
  } 

  .sidebar-container {
    transition: width 0.28s;
    width: $sideBarWidth;
    background-color: $moduleBg;

    // height: calc(100% - 70px);
    position: fixed;
    font-size: 0px;
    top: 80px;
    bottom: 0;
    left: 0;
    z-index: 1001;
    overflow: hidden;

    // reset element-ui css
    .horizontal-collapse-transition {
      transition: 0s width ease-in-out, 0s padding-left ease-in-out,
        0s padding-right ease-in-out;
    }

    .scrollbar-wrapper {
      width: 180px;
      overflow-x: hidden !important;
    }

    .el-scrollbar__bar.is-vertical {
      right: 0px;
    }

    .el-scrollbar {
      width: 180px;
      height: 100%;
    }

    &.has-logo {
      .el-scrollbar {
        height: calc(100% - 50px);
      }
    }

    .is-horizontal {
      display: none;
    }

    a {
      display: inline-block;
      width: 100%;
      overflow: hidden;
    }

    .svg-icon {
      margin-right: 16px;
    }

    .sub-el-icon {
      margin-right: 12px;
      margin-left: -2px;
    }

    .el-menu {
      border: none;
      height: 100%;
      width: 240px !important;
	  margin:0 10px !important; 
    }
	.el-submenu{
		 .el-menu{
			 margin:0 !important;
		 }
	}
    // menu hover
    .submenu-title-noDropdown,
    .el-submenu__title {
      &:hover {
        background: $menuActiveBg !important;
      }
    } 
    .el-submenu__title {
      padding: 0 20px   !important;
      height:50px;
	  line-height:50px;
      font-size: 16px;
	  border-radius:6px;
	  overflow:hidden;
    }

    .el-submenu__icon-arrow {
      top: calc(50% - 6px);
	  margin-top: 0 !important;
    } 
  }

  .el-menu--collapse .el-menu .el-submenu {
    min-width: $sideBarWidth !important; 
  }

  // mobile responsive
  .mobile {
    .main-container {
      margin-left: 0px;
    }

    .sidebar-container {
      transition: transform 0.28s;
      width: $sideBarWidth !important;
    }

    &.hideSidebar {
      .sidebar-container {
        pointer-events: none;
        transition-duration: 0.3s;
        transform: translate3d(-$sideBarWidth, 0, 0);
      }
    }
  }

  .withoutAnimation {

    .main-container,
    .sidebar-container {
      transition: none;
    }
  }
}

// when menu collapsed
.el-menu--vertical {
  &>.el-menu {
    .svg-icon {
      margin-right: 16px;
    }

    .sub-el-icon {
      margin-right: 12px;
      margin-left: -2px;
    }
  }

  .nest-menu .el-submenu>.el-submenu__title,
  .el-menu-item {
	  height:50px;
	  line-height:50px;
	  border-radius: 6px;
	  overflow:hidden;
    &:hover { 
      background-color: $menuActiveBg !important;
    }
  }

  // the scroll bar appears when the subMenu is too long
  >.el-menu--popup {
    max-height: 100vh;
    overflow-y: auto;

    &::-webkit-scrollbar-track-piece {
      background: #d3dce6;
    }

    &::-webkit-scrollbar {
      width: 6px;
    }

    &::-webkit-scrollbar-thumb {
      background: #99a9bf;
      border-radius: 20px;
    }
  }
}